import {request} from 'umi';
import {IloginItem} from '@/utils/interface';
// 登录
export function login(data:IloginItem){
    return request('/user/login',{
        method:'POST',
        data
    })
};
//获取用户信息
export function userInfo(){
    return request('/user/userInfo',{
        method:'GET',
    })
};